<?php
    header('Content-type: text/json');
    $callback = isset($_GET["callback"])?$_GET["callback"]:"callback";
    $json_string='{"error":0,"data":{"price":30},"msg":"出错了！"}';
    /* 测试数据 end */
    $obj=json_decode($json_string);
    echo $callback . "(". json_encode($obj). ")";
    exit;
?>